/*
    相较于readStream来说，writeStream试用起来简单很多.你看下就会了
*/
const fs = require('fs');

let writeStream = fs.createWriteStream('./2.txt');

writeStream.write('11111');
writeStream.write('11111');
writeStream.write('11111');

writeStream.end();